package org.example.myleet.p850;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.rectangleArea(Parser.parse("[[0,0,1,1],[2,2,3,3]]")));
        Assert.isTrue(6 == solution.rectangleArea(Parser.parse("[[0,0,2,2],[1,0,2,3],[1,0,3,1]]")));
        Assert.isTrue(49 == solution.rectangleArea(Parser.parse("[[0,0,1000000000,1000000000]]")));
    }
}
